import React, {Component} from 'react';
import {View} from 'react-native';
import {Button, Text} from 'native-base';
import ModalDropdown from 'react-native-modal-dropdown';

const DEMO_OPTIONS_1 = ['option 1', 'option 2', 'option 3', 'option 4', 'option 5', 'option 6', 'option 7', 'option 8', 'option 9'];

export default class TestPage extends Component {
	
	render() {
		return (
			<View style={{top: 20}} >
				<Button onPress={() => {
					this.refs.vv.show()
				}}>
					<Text>测试</Text>
				</Button>
				<ModalDropdown ref='vv' style={{flex: 1}} options={['option 1', 'option 2']} />
			</View>
		);
	}
	
}
